home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 2.4 KB | 54 lines | [TEXT/GEOL] |
- INTERNET# Document Id: <sbBm9Qi00UhWE2o7Y2@andrew.cmu.edu>
-
- Item 8587984 6-Nov-90 07:51
-
- From: BA0K+@ANDREW.CMU.EDU@INTERNET# Gateway to Internet/BITNET/UUCP
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Draw performance problems
-
- TO REPLY, use: ba0k+@andrew.cmu.edu@INTERNET#
- Using the reply function in AppleLink does not work for gatewayed E-mail yet.
-
- From: Brian Patrick Arnold <ba0k+@andrew.cmu.edu>
- To: MACAPP.TECH$@applelink.apple.com
-
-
- Hi there,
-
- I've got a graphical "influence diagram" editor in MacApp that
- exhibits a little performance trouble on a Mac SE (er, Plus, Portable,
- etc.). I use the "area" parameter to optimize my Draw method. It seems
- fast if it has to update the whole screen, e.g., a screenful scroll up
- or down, but ironically when I drag a single node, the redraw time seems
- slower.
-
- In one persnickity case, I have a grid to show and hide (drawing
- points in the same view, not as a separate view). I'd like to avoid
- visible redrawing of things that don't need redrawing, so I try to pick
- and choose what parts of my diagram need to be invalidated. I use the
- VisibleRect so I only invalidate visible portions of my view. I
- invalidate a set of thin rects containing the grid points. I have also
- dabbled with DiffRgn on a region consisting of my node rects - I
- subtract them from the Rgn of thin rects so that nodes don't appear to
- "flicker". When I invalidate so much, the show/hide grid draws only
- what is necessary which is very pleasant to the eye. BUT it draws
- puh-thetically slowly compared to simply invalidating the whole visible
- rect. Oh yeah, to make matters worse, I have a grey-scale TPattern view
- behind all this.
-
- Why is updating a complex region so muct slower? Does this behavior
- imply that (a) I should look into the qExperimentalAndUnsupported
- buffering of views, (b) I should look into OSImage, or (c) should I get
- a clue, optimize my grid drawing, toss out the grey-scale TPattern, etc?
-
- If I look into qExperimentalAndUnsupported buffering of views, is
- there someone who can explain in a nutshell how to turn it on and use it
- so that I only use buffered views and not other unsupported features?
- Uh, of MacApp 2.0 "final". I suspect I need to know more than just
- turning on the compiler variable. Any advice on my next move here would
- be much appreciated, thanks!
-
- - Brian
-